Why doesn't the client receive the response message from the server